<marquee behavior="scroll" direction="up" scrollamount="3" onmouseover="this.stop()" onmouseout="this.start()">
	<?php $id = Yii::app()->request->getParam('id'); ?>
	<?php foreach ($products as $product): ?>
		<?php $category = ProductCategory::model()->findByPk($product->category->parent->id); ?>
		<?php 
			if($id==1)
				$parent_id =1;
			else
				$parent_id = $category->parent_id;
		
		?>
		<div class="khuyenmai">
			<div class="title alc fsi fs14">
				<?php echo CHtml::link($product->title,array('/product/product/viewProduct', 'id'=>$parent_id,'product_id'=>$product->id)); ?>
			</div>
			<div class="image">
				<?php echo CHtml::link(CHtml::image($product->newest_image->thumb175x155,$product->title),array('/product/product/viewProduct', 'id'=>$parent_id, 'product_id'=>$product->id)); ?>
			</div>
			<div class="price alc text3 fs14 fwb fsi strike">
				<?php echo Yii::app()->format->formatNumber($product->discount); ?> VNĐ
			</div>
			<div class="price alc text1 fs16 fwb">
				<?php echo Yii::app()->format->formatNumber($product->price); ?> VNĐ
			</div>
		</div>
	<?php endforeach; ?>
</marquee>